<!--
 * @Author: dfh
 * @Date: 2023-12-14 15:02:51
 * @LastEditors: dfh
 * @Modified By: dfh
 * @describe: 
-->
<template>
  <cw-tree :data="data"></cw-tree>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { TreeOptions } from '@cowain/components/tree';


const data = ref<TreeOptions[]>([
  {
    key: '0',
    label: '0',
    children: [
      {
        key: '0-0',
        label: '0-0'
      },
      {
        disabled: true,
        key: '0-1',
        label: '0-1',
        children: [
          {
            label: '0-1-0',
            key: '0-1-0'
          },
          {
            disabled: true,
            label: '0-1-1',
            key: '0-1-1'
          }
        ]
      }
    ]
  }
]);
</script>

<style lang="scss" scoped></style>